button: Track gesture point to maintain priv->in_button
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 20 Aug 2014 18:12:35 +0000 (20:12 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 26 Aug 2014 21:21:24 +0000 (23:21 +0200)
commitea830aee5d21c6a5992381c0aea7fce608b9518f
treef9ebb87ce1bd106d76acb930a69afeddf7db30bf
parentd04d29f26c294874eea547bd6e1817291b4cf26a
button: Track gesture point to maintain priv->in_button

This makes the active state work invariably with both mouse/touch, and
regardless of X11 pointer emulation being friendly and sending crossing
events for the emulated pointer events in the latter.

This makes GtkButtons' active state look correct when pressing on
touchscreens on wayland.

https://bugzilla.gnome.org/show_bug.cgi?id=731380
gtk/gtkbutton.c